package com.zp.business.entity.infusion;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zp.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 输液室记录对象 infusion_record
 *
 * @author zhang peng
 * @ date 2025-02-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("infusion_record")
public class InfusionRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "infusion_record_id")
    private String infusionRecordId;


    /**
     * 输液项目表ID
     */
    private String itemId;


    /**
     * 配液时间
     */
    private Date distributionTime;


    /**
     * 配液护士
     */
    private String distributionNurse;


    /**
     * 穿刺时间
     */
    private Date punctureTime;


    /**
     * 穿刺护士
     */
    private String punctureNurse;


    /**
     * 换液拔针时间
     */
    private Date pullNeedleTime;


    /**
     * 换液拔针护士
     */
    private String pullNeedleNurse;


    /**
     * 输液开始时间
     */
    private Date infusionStartTime;


    /**
     * 输液结束时间
     */
    private Date infusionEndTime;


    /**
     * 机构ID
     */
    private String orgId;


    /**
     * 标志
     */
    @TableLogic
    private String delFlag;
    /**
     * 备注信息
     */
    private String remarks;
    /**
     * 配液护士姓名
     */
    private String distributionNurseName;
    /**
     * 穿刺护士姓名
     */
    private String punctureNurseName;
    /**
     * 换液拔针护士姓名
     */
    private String pullNeedleNurseName;
    /**
     * 机构名称
     */
    private String orgName;
    /**
     * 操作状态
     */
    private String operatorType;
    private String operatorTypeName;

    /**
     * 同组液体的每次输液序号
     */
    private int infusionSerialNumber;
    /**
     * 熔断后异常信息
     */
    @TableField(exist = false)
    private String exceptionCode;

    public void initEntity() {
        this.delFlag = "0";
    }


}
